﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="NewItem.aspx.vb" Inherits="examquestions.NewItem" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <br />
        <asp:Label ID="Label1" runat="server" Text=""><div class="alert alert-danger">Only confirmed teachers can add questions to this site<a href="mailto:confirmation@examquestions.com?Subject=Please%20confirm"" class="alert-link"> Get confirmed now!</a> Make sure to use your professional email address.</div></asp:Label>
    <asp:Panel ID="Panel1" runat="server">
    
    <div class="alert alert-info alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  By adding your question to this site, you agree to share it using a <strong>Creative 
    Commons License</strong>. More information at <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
</div>

    <div class="alert alert-warning alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <strong>Warning!</strong> Any question found to infrige on 
anyone&#39;s copyright will be deleted within 24 hours. Repeat offenders face profile deletion.
</div>
    

    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <div class="page-header">
        <h2>Question</h2>
      </div>
    
    <asp:TextBox ID="tb_questionText" runat="server" MaxLength="1000" 
        TextMode="MultiLine" Rows="10"
        ToolTip="Type your question here. If it contains an image, please use the 'Upload' tool below" 
        Width="100%"></asp:TextBox>
    <ajaxToolkit:HtmlEditorExtender ID="tb_questionText_HtmlEditorExtender" 
        runat="server" Enabled="True" EnableSanitization="False" 
        TargetControlID="tb_questionText">
    </ajaxToolkit:HtmlEditorExtender>


    <div class="page-header">
        <h2>Answer</h2>
      </div>
    <asp:TextBox ID="tb_answer" runat="server" MaxLength="1000" 
        TextMode="MultiLine" ToolTip="Please type your answer here" Width="100%" 
        Rows="10"></asp:TextBox>
    <ajaxToolkit:HtmlEditorExtender ID="tb_answer_HtmlEditorExtender" 
        runat="server" Enabled="True" EnableSanitization="False" 
        TargetControlID="tb_answer">
    </ajaxToolkit:HtmlEditorExtender>
    <br />
    <!-- Options 1 -->
      <div class="row">
        <div class="col-sm-4">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Marks</h3>
            </div>
            <div class="panel-body">
              <asp:TextBox ID="tb_pointValue" runat="server" TextMode="Number" 
        class="form-control" placeholder="Type the numerical value of the question"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
        ControlToValidate="tb_pointValue" 
        ErrorMessage="Type a number between 0 and 1,000" MaximumValue="1000" 
        MinimumValue="0" Type="Integer"></asp:RangeValidator>
            </div>
          </div>

        </div><!-- /.col-sm-4 -->
        <div class="col-sm-4">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Exam Board</h3>
            </div>
            <div class="panel-body">
              <asp:DropDownList ID="tb_examBoard" runat="server" class="form-control">
        <asp:ListItem>AQA</asp:ListItem>
        <asp:ListItem>IBO</asp:ListItem>
        <asp:ListItem>Edexcel</asp:ListItem>
    </asp:DropDownList>
&nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ExamQuestionsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ExamQuestionsConnectionString.ProviderName %>" 
        SelectCommand="SELECT [examBoardID] FROM [question]"></asp:SqlDataSource>
              </div>
          </div>
        </div><!-- /.col-sm-4 -->
        <div class="col-sm-4">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Exam type</h3>
            </div>
            <div class="panel-body">
              <asp:DropDownList ID="tb_examType" runat="server" class="form-control">
        <asp:ListItem>A Level</asp:ListItem>
        <asp:ListItem>AP</asp:ListItem>
        <asp:ListItem>GCSE</asp:ListItem>
        <asp:ListItem>IBDP</asp:ListItem>
        
    </asp:DropDownList>
&nbsp;<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ExamQuestionsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ExamQuestionsConnectionString.ProviderName %>" 
        SelectCommand="SELECT [examTypeID] FROM [question]"></asp:SqlDataSource>
            </div>
          </div>
        </div><!-- /.col-sm-4 -->
      </div>
    
    <!-- Options 2 -->
    
      <div class="row">
        <div class="col-sm-4">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Subject</h3>
            </div>
            <div class="panel-body">
              <asp:DropDownList ID="tb_subject" runat="server" class="form-control">
        <asp:ListItem>Biology</asp:ListItem>
        <asp:ListItem>Chemistry</asp:ListItem>
        <asp:ListItem>Computer Science</asp:ListItem>
        <asp:ListItem>English</asp:ListItem>
        <asp:ListItem>Geograpghy</asp:ListItem>
        <asp:ListItem>History</asp:ListItem>
        <asp:ListItem>Maths</asp:ListItem>
        <asp:ListItem>Music</asp:ListItem>
        <asp:ListItem>MFL</asp:ListItem>
        <asp:ListItem>Physics</asp:ListItem>
        <asp:ListItem>PE</asp:ListItem>
    </asp:DropDownList>
&nbsp;<asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ExamQuestionsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ExamQuestionsConnectionString.ProviderName %>" 
        SelectCommand="SELECT [SubjectID] FROM [question]"></asp:SqlDataSource>
            </div>
          </div>

        </div><!-- /.col-sm-4 -->
        <div class="col-sm-4">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">Attachment</h3>
            </div>
            <div class="panel-body">
              <asp:FileUpload ID="f_attachment" runat="server" />
              </div>
          </div>
        </div><!-- /.col-sm-4 -->
       
      </div>


    
    <br />
    <asp:Button ID="btn_new_question" class="btn btn-primary btn-lg btn-block btn-success" runat="server" Text="Add this question" />
    <br />
    <br />
    </asp:panel>
    <br />
    <br />
    <br />
    <br />
</asp:Content>
